Package com.amazonaws.ivs.chat.messaging.entities

Types

Link copied to clipboard
data class ChatError(    val id: String,     val errorCode: Int,     val errorMessage: String,     val requestId: String?)

Represents an error sent by chat room in response to user request.

Link copied to clipboard
data class ChatEvent(    val id: String,     val eventName: String,     val sendTime: Date,     val requestId: String? = null,     val attributes: Map<String, String>? = null)

Represents an event received in the chat room. Events might originate from IVS service, client actions, or your backend code.

Link copied to clipboard
data class ChatMessage(    val id: String,     val sender: ChatUser,     val content: String,     val sendTime: Date,     val requestId: String? = null,     val attributes: Map<String, String>? = null)

Represents a chat message sent by clients to the room.

Link copied to clipboard
data class ChatUser(val userId: String, val attributes: Map<String, String>? = null)

Represents a user participating in chat room.

Link copied to clipboard
data class DeleteMessageEvent(    val id: String,     val messageId: String,     val reason: String?,     val sendTime: Date,     val requestId: String? = null,     val attributes: Map<String, String>? = null)

Represents an event in which IVS informs clients that given message should be deleted from the room due to moderation.

Link copied to clipboard
data class DisconnectUserEvent(    val id: String,     val userId: String,     val reason: String?,     val sendTime: Date,     val requestId: String? = null,     val attributes: Map<String, String>? = null)

Represents an event in which IVS informs clients that given user is being disconnected from the room for moderation reasons.